package com.inspur.sc.springboot.service;

import com.inspur.sc.springboot.entity.SysRole;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface SysRoleService {

    boolean save(SysRole sysRole);

    SysRole findSysRoleById(Integer id);

    List<SysRole> findAll();

    boolean deleteById(Integer id);

    Page<SysRole> findByNameLike(String name, Pageable pageable);

    List<SysRole> findByUserId(Integer userId);
}
